{include file="header.html"}
<div id="rightTop">
  <p>广告管理</p>
  <ul class="subnav">
    <!--{if $smarty.get.wait_verify}-->
    <li><a class="btn1" href="index.php?app=advertisement_setting">{$lang.manage}</a></li>
    <!--{else}-->
    <li><span>{$lang.manage}</span></li>
    <!--{/if}-->
    <li><a class="btn1" href="index.php?app=advertisement_setting&amp;act=add">{$lang.add}</a></li>
  </ul>
</div>
<div class="tdare">
  <table width="100%" cellspacing="0" class="dataTable">
    <!--{if $res}-->
    <tr class="tatr1">
      <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
      <td class="table-center">ID</td>
      <td class="table-center">标题</span></td>
      <td class="table-center">图片</td>
      <td class="table-center">类型</td>
      <td class="table-center">出现位置</span></td>
      <td class="table-center">广告位置</span></td>
      <td class="table-center">配置专题名称</td>
      <td class="table-center">链接</td>
      <td class="table-center">是否关闭</td>
      <td class="handler" style="width: 160px;">{$lang.handler}</td>
    </tr>
    <!--{/if}-->
    <!--{foreach from=$res item=v key=k}-->
    <tr class="tatr2">
      <td class="firstCell"><input type="checkbox" class="checkitem" value="{$banner.banner_id}" /></td>
      <td class="table-center">{$v.advertisement_id}</td>
      <td class="table-center">{$v.advertisement_title}</td>
      <td class="table-center"><img src="{$v.advertisement_url}?{$random_number}" alt="广告图片" height="30"></td>
      <td class="table-center">{$v.typeValue}</td>
      <td class="table-center">{$v.typeIDValue}</td>
      <td class="table-center">{$v.categoryValue}</td>
      <td class="table-center">{$v.theme_title}</td>
      <td class="table-center">{$v.advertisement_link}</td>
      <td class="table-center">{$v.closeValue}</td>
      <td class="handler">
        <!--{if $v.close eq 0}-->
        <a href="javascript:drop_confirm('您确定要开启吗', 'index.php?app=advertisement_setting&amp;act=operation&amp;advertisement_id={$v.advertisement_id}&amp;param=1');">开启</a> |
        <!--{else}-->
        <a href="javascript:drop_confirm('您确定要关闭吗', 'index.php?app=advertisement_setting&amp;act=operation&amp;advertisement_id={$v.advertisement_id}&amp;param=0');">关闭</a> |
        <!--{/if}-->
        <a href="index.php?app=advertisement_setting&amp;act=edit&amp;advertisement_id={$v.advertisement_id}">{$lang.edit}</a> |
        <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=advertisement_setting&amp;act=drop&amp;advertisement_id={$v.advertisement_id}');">{$lang.drop}</a>
    </tr>
    <!--{foreachelse}-->
    <tr class="no_data">
      <td colspan="12">{$lang.no_data}</td>
    </tr>
    <!--{/foreach}-->
  </table>
  <!--{if $res}-->
  <div id="dataFuncs">
    <div class="pageLinks">
      {include file=page.bottom.html}
    </div>
  </div>
  <div class="clear"></div>
  <!--{/if}-->
</div>
{include file="footer.html"}
